# Reference: <https://postmarketos.org/devicepkg>
pkgname=device-trekstor-surftabduow1
pkgdesc="Trekstor Surftab Duo W1"
pkgver=1
pkgrel=0
url="https://postmarketos.org"
license="MIT"
arch="x86_64"
options="!check !archcheck"
depends="grub-x86 postmarketos-base linux-lts"
makedepends="devicepkg-dev"
source="deviceinfo modules-initfs grub.cfg"

build() {
	devicepkg_build $startdir $pkgname
}

package() {
	devicepkg_package $startdir $pkgname
	mkdir -p "$pkgdir"/boot/grub/
	install -D -m644 "$srcdir"/grub.cfg \
		"$pkgdir"/boot/grub/grub.cfg
}

sha512sums="
00ac1a11fbf61943eba91b7e1d34da6b8a170390895a6631ae1e23bd5a78dcf0bf55c8f166e5cf9cb64760868ca75513ef5a93cce099540c09ded876c3208bd3  deviceinfo
b993c88915885b04bb63b3c8e903a2248ceca61fedcf1bf43278bdebae216315251d0b6c2ef8d2632e38ed6a059dbfd4111b12740c39ceb7ed7b1fc5583d4b23  modules-initfs
11fa2ef0a8434bdd6ff266f17585ae3f5ec7724a2053ec62c831845dc7cf6d74e690cdb3e67f84c7183e16f0d6a168275942490927143b1287330b45286f27e9  grub.cfg
"
